]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
windowManager: Avoid calling meta_window_actor_thaw when not frozen
authorDaniel van Vugt <daniel.van.vugt@canonical.com>
Fri, 2 Oct 2020 08:33:31 +0000 (16:33 +0800)
committerDaniel van Vugt <daniel.van.vugt@canonical.com>
Thu, 8 Oct 2020 06:27:58 +0000 (14:27 +0800)
Because that tends to crash in:
```
g_error ("Error in freeze/thaw accounting");
```

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1431
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1453

js/ui/windowManager.js

index ab86a2e6a391bd4961e3b6a357ee2a0f130230e3..91b764ea8debdd8c866cf1014d82af1834d58a79 100644 (file)
@@ -1378,6 +1378,10 @@ var WindowManager = class {
             onStopped: () => this._sizeChangeWindowDone(shellwm, actor),
         });
 
+        // ease didn't animate and cleared the info, we are done
+        if (!actor.__animationInfo)
+            return;
+
         // Now unfreeze actor updates, to get it to the new size.
         // It's important that we don't wait until the animation is completed to
         // do this, otherwise our scale will be applied to the old texture size.